<?php

namespace App\Http\Composers;

use Auth, Request, Route, DB;
use Illuminate\View\View;

use App\Repositories\Eloquent\ManageRepository;


class BreadcrumsComposer 
{ 
    private $title, $manage;
    
    public function __construct( ManageRepository $manage)
    {
        $this->title = 'title.'.Route::currentRouteName();

        $this->manage = $manage;
    }    

    public function compose(View $view) 
    {
        $view->with([
            'title' => $this->title,
            'swipers' => $this->manage->content('swiper')->get(),
        ]);
    }


    
}